package com.wxserver.server.controller;

import com.wxserver.server.pojo.UserPojo;
import com.wxserver.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/")
public class UserController {
    @Autowired
    UserService userService;
    @RequestMapping("sendToWx")
    @ResponseBody
    public List<UserPojo> sendToWx(){
        return userService.sendMesToWx();
    }
}
